package org.hry.file.test;

import java.io.*;
import java.nio.file.Files;

public class FileCopy {
    public static void main(String[] args) throws Exception {
        Long start = System.currentTimeMillis();
        File source = new File("E:\\source.zip");
        File dest = new File("E:\\back.zip");
        Files.copy(source.toPath(), dest.toPath());
        System.out.println("总共耗时：" + (System.currentTimeMillis() - start));
    }
}
